<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			html {
				height: 100%;
			}
			body {
				width: 100%;
				height: 100%;
				background-color: #262f44;
				display: flex;
				justify-content: center;
				align-items: center;
			}
			.box {
				width: 400px;
				height: 220px;
				background-color: #FF6700;
				position: relative;
				overflow: hidden;
			}
			.box::before {
				content: '';
				display: block;
				width: 200px;
				height: 220px;
				background-color: blueviolet;
				position: absolute;
				top: 0;
				left: 0;
				transform: translateX(-100%);
				transition: 1s;
			}
			.box::after {
				content: '';
				display: block;
				width: 200px;
				height: 220px;
				background-color: blueviolet;
				position: absolute;
				top: 0;
				right: 0;
				transform: translateX(100%);
				transition: 1s;
			}
			.box:hover::before,.box:hover::after {
				transform: translateX(0);
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
	</body>
</html>
